<%@ taglib prefix="s" uri="/struts-tags" %>
<%--
  Created by IntelliJ IDEA.
  User: wurenjie
  Date: 15/5/9
  Time: 19:13
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title><s:property value="title"/> | 页面不存在 - 舰娘百科</title>
    <s:include value="head.jsp" />
</head>
<body>
<div class="body-container">
    <s:include value="header.jsp" />
    <div class="infoBox">
        <div class="infoBox-content">
            <div class="infoBox-icon">
                <img src="http://honoka.qiniudn.com/20150524035814180/Kancolle_logo.jpg" style="text-align:center">
            </div>
            <div class="infoBox-text" id="infoBox-text">
            </div>
            <div id="isCreatePage">
                <p>本页面目前没有内容，您可以<a href="javascript:;" id="Page-create">创建本页面</a>poi~</p>
            </div>
        </div>
    </div>
    <div class="wikiEdit-container notshow">
        <div class="wikiEdit-abstract">
            <p>标题:</p>
            <input type="text" id="wikiEdit-title" value="<s:property value="title" />" style="width:100%">
        </div>
        <div class="wikiEdit-frame">
            <ul class="nav nav-tabs">
                <li role="presentation" class="active" data-toggle="tabs" id="wikiEdit"><a href="javascript:;" id="btn-wikiEdit">维基文本</a></li>
                <li role="presentation" data-toggle="tabs" id="wikiPreview"><a href="javascript:;" id="btn-wikiPreview">预览</a></li>
                <li role="presentation" ><a href="javascript:;" id="wikiImage">插入图片</a></li>
            </ul>
            <div class="wikiEdit-content">
                <div class="wikiEdit-textarea">
                    <textarea id="wikiEdit-textarea" cols="80" rows="25"></textarea>
                </div>
                <div class="wikiPreview notshow">
                    <div class="Preview-content" id="Preview-content">

                    </div>
                </div>
                <div class="btn btn-group">
                    <button class="btn btn-primary" style="margin-right: 20px" id="wikiEdit-save">保存本页</button>
                    <button class="btn btn-danger" id="wikiEdit-cancel">取消</button>
                </div>
            </div>
            <div class="wikiEdit-help">
                <p>基本排版语法:</p>
                <p>各级标题:&lt;h1>到&lt;h6>的标题可以通过下面的语法来设置：</p>
                <p>=h1=</p>
                <p>==h2==</p>
                <p>粗体，斜体和粗斜体：</p>
                <p>''我是斜体''</p>
                <p> '''我是粗体'''</p>
                <p>{_下划线字体_}</p>
                <p>{+大字体+}</p>
                <p>{-小字体-}</p>
                <p>表格</p>
                <p>||:Title1||:Title2||:Title3||</p>
                <p>||AAA||BBB||CCC||</p>
                <p>||DDD||EEE||FFF||</p>
                <p>转义:{='''这些代码不会转义。'''=}</p>
                <p>链接:</p>
                <p>普通外部超链接:[[http://www.baidu.com]]</p>
                <p>Wiki内部链接:[[Index]]</p>
                <p>限定大小的图片:[[http://blog.zyzsdy.com/wordpress/wp-content/themes/feelyblog/img/avatar.jpg x300]]</p>
                <p>对齐浮动样式:%color=red float=right size=20px%</p>
            </div>
        </div>
    </div>
    <div class="search-result">
        <s:if test="searchResult.size()<=0">
            <i>无搜索结果。</i>
        </s:if>
        <s:else>
            <h2>搜索结果</h2>
            <hr>
            <s:iterator value="searchResult" id="it" status="st">
                <div>
                    <h3><a href="/wiki/<s:property value="#it.title"/>"><s:property value="#it.title"/></a></h3>
                    <s:if test="#it.content.length()>=100">
                        <div><s:property value="#it.content.substring(0, 100)"/>...</div>
                    </s:if>
                    <s:else>
                        <div><s:property value="#it.content"/> </div>
                    </s:else>
                </div>
                <hr>
            </s:iterator>
        </s:else>
    </div>

    <s:include value="modal_mask.jsp" />

    <s:include value="footer.jsp" />
</div>
<script src="/Public/js/jquery.min.js"></script>
<script src="/Public/js/bootstrap.min.js"></script>
<script src="/Public/js/jquery.feelywikicode.min.js"></script>
<script src="/Public/js/main.js"></script>
<script src="/Public/js/wiki.js"></script>
</body>
</html>
